/*
 * Copyright (C) 2010 M. Hautle.
 * 
 * This file is part of TrackedBean.
 * 
 * TrackedBean is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * TrackedBean is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with TrackedBean. If not, see <http://www.gnu.org/licenses/>.
 */
package ch.trackedbean.internal.weaving;

import java.io.*;
import java.net.*;
import java.security.*;
import java.util.*;
import org.eclipse.osgi.baseadaptor.*;
import org.eclipse.osgi.baseadaptor.hooks.*;
import org.eclipse.osgi.baseadaptor.loader.*;
import org.eclipse.osgi.framework.adaptor.*;
import org.eclipse.osgi.framework.log.*;
import org.osgi.framework.*;
import org.osgi.util.tracker.*;

/**
 * Class holding the unused methods of {@link TrackedBeanClassLoadingHook}.
 * 
 * @author M. Hautle
 */
abstract class AbstractTrackedBeanClassLoadingHook implements ClassLoadingHook, AdaptorHook, ServiceTrackerCustomizer {
    /**
     * {@inheritDoc}
     */
    @Override
    public boolean addClassPathEntry(ArrayList cpEntries, String cp, ClasspathManager hostmanager, BaseData sourcedata, ProtectionDomain sourcedomain) {
        return false;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String findLibrary(BaseData data, String libName) {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public ClassLoader getBundleClassLoaderParent() {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public BaseClassLoader createClassLoader(ClassLoader parent, ClassLoaderDelegate delegate, BundleProtectionDomain domain, BaseData data,
            String[] bundleclasspath) {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void initializedClassLoader(BaseClassLoader baseClassLoader, BaseData data) {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void initialize(BaseAdaptor adaptor) {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void frameworkStop(BundleContext context) throws BundleException {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void addProperties(Properties properties) {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public URLConnection mapLocationToURLConnection(String location) throws IOException {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void handleRuntimeError(Throwable error) {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public FrameworkLog createFrameworkLog() {
        return null;
    }
}
